package com.pz.gulimall.product.feign;

import com.pz.gulimall.common.to.es.SkuEsModelTo;
import com.pz.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("gulimall-search")
public interface SearchFeign {
    @PostMapping("/es/product/sku/save")
    R saveSku(@RequestBody List<SkuEsModelTo> skuEsModelTos);
}
